package com.stud.system.request.workflow;

import com.stud.system.request.WorkflowRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author Stud
 * @title XXXXX
 * @desription XXXXX
 * @data 2022-11-11 17:24
 */
@Data
@ApiModel("流程审批-驳回")
public class WorkflowRejectRequest extends WorkflowRequest {
    @NotNull(message = "流程ID不能为空")
    @ApiModelProperty("流程ID")
    private Long workflowId;

    @ApiModelProperty("流程任务ID(如果是并行流程,则需要传入这个参数才知道需要审批的是哪一个任务)")
    private Long taskId;

    @NotBlank(message = "流程审批意见不能为空")
    @ApiModelProperty("流程审批意见")
    private String taskInfo;

    @ApiModelProperty("流程审批附件")
    private MultipartFile[] attachments;
}
